package fm.last.api
{
    import fm.last.BaseTC;
    

    public class GroupAPITest extends BaseTC
    {
        
        
        public function GroupAPITest()
        {
            super();              
            addTest("testGetMembers");
            addTest("testGetWeeklyAlbumChart");
            addTest("testGetWeeklyArtistChart");
            addTest("testGetWeeklyChartList");
            addTest("testGetWeeklyTrackChart");        
        }
     
    
        public function testGetMembers():void
        {           
            lfm_service.group.getMembers(expectedPattern("/lfm/members"), unexpectedError, "mnml"); 
        }       
        
        public function testGetWeeklyAlbumChart():void
        {       
            lfm_service.group.getWeeklyAlbumChart(expectedPattern("/lfm/weeklyalbumchart"), unexpectedError, "mnml");
            lfm_service.group.getWeeklyAlbumChart(expectedPattern("/lfm/weeklyalbumchart"), unexpectedError, "mnml", "1212321600", "1212926400");
            
            // may have no result
            lfm_service.group.getWeeklyAlbumChart(expectedPattern("/lfm"), unexpectedError, "mnml", "1212321600");                  
        }       
        
        public function testGetWeeklyArtistChart():void
        {         
            lfm_service.group.getWeeklyArtistChart(expectedPattern("/lfm/weeklyartistchart"), unexpectedError, "mnml");   
        }     
          
        public function testGetWeeklyChartList():void
        {   
            lfm_service.group.getWeeklyChartList(expectedPattern("/lfm/weeklychartlist"), unexpectedError, "mnml");         
        }    
           
        public function testGetWeeklyTrackChart():void
        {            
            lfm_service.group.getWeeklyTrackChart(expectedPattern("/lfm/weeklytrackchart"), unexpectedError, "mnml");
        }       
    }
}